
import 'package:flutter_first_project/constant/index.dart';
import 'package:flutter_first_project/utils/requestDio.dart';
// 获取用户信息
Future<dynamic>  getUserInfoAPI() {
  return requestDio.get(HttpPath.userInfo);
}
// 修改用户信息
Future<dynamic>  updateUserInfoAPI(data) {
  return requestDio.put(HttpPath.userInfo,data: data);
}
// 头像上传
Future<dynamic>  uploadPhotoAPI(data) {
  return requestDio.post(HttpPath.UPLOAD,data: data);
}